package com.client.service;

import com.client.pojo.EntryLikes;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 词条点赞记录表 服务类
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 08:28:54
 */
public interface EntryLikesService extends IService<EntryLikes> {

    List<EntryLikes> getByIds(Integer userId);

    boolean searchIfLiked(Integer userId, Integer entryId);

    void addLikes(Integer userId, Integer entryId, Integer authorId);

    void cancelLikes(Integer userId, Integer entryId);
}
